package com.zsz.springboot.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class IndexController {

    @RequestMapping(value = "/say")
    @ResponseBody
    public String say(){
        return "say: hello,springboot";
    }

    @RequestMapping(value = "/mapvalue")
    @ResponseBody
    public Map<String,Object> mapValue(){

        Map<String,Object> map=new HashMap<String, Object>();

        map.put("message","springboot project");

        return map;
    }



}
